package grape.house.rest.client.impl.buildingunit;

import grape.house.rest.buildingunit.mvc.BuildingUnitInnerController;
import grape.house.rest.client.buildingunit.BuildingUnitClient;
import grape.house.service.buildingunit.po.BuildingUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by yangwei
 * Created at 2020/9/28 16:37
 */
@Component
public class BuildingUnitClientImpl implements BuildingUnitClient {
    @Autowired
    private BuildingUnitInnerController buildingUnitInnerController;
    @Override
    public String trans(String type, String key) {
        return buildingUnitInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return buildingUnitInnerController.support(type);
    }

    @Override
    public BuildingUnit getBuildingUnitById(String id) {
        return buildingUnitInnerController.getBuildingUnitById(id);
    }

    @Override
    public BuildingUnit getBuildingUnitByCode(String code) {
        return buildingUnitInnerController.getBuildingUnitByCode(code);
    }
}
